<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>PxConvexMeshDesc.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="PhysXLogoBlack.png"/></td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('PxConvexMeshDesc_8h_source.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">PxConvexMeshDesc.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="PxConvexMeshDesc_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">// Redistribution and use in source and binary forms, with or without</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">// modification, are permitted provided that the following conditions</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">// are met:</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">//  * Redistributions of source code must retain the above copyright</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">//    notice, this list of conditions and the following disclaimer.</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">//  * Redistributions in binary form must reproduce the above copyright</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">//    notice, this list of conditions and the following disclaimer in the</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">//    documentation and/or other materials provided with the distribution.</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">//  * Neither the name of NVIDIA CORPORATION nor the names of its</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">//    contributors may be used to endorse or promote products derived</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">//    from this software without specific prior written permission.</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS &#39;&#39;AS IS&#39;&#39; AND ANY</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment">// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment">// PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment">// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment">// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment">// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment">// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment">// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment">// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment">// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="comment">// Copyright (c) 2008-2021 NVIDIA Corporation. All rights reserved.</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="comment">// Copyright (c) 2004-2008 AGEIA Technologies, Inc. All rights reserved.</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="comment">// Copyright (c) 2001-2004 NovodeX AG. All rights reserved.  </span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#ifndef PX_COLLISION_NXCONVEXMESHDESC</span></div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#define PX_COLLISION_NXCONVEXMESHDESC</span></div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="PxVec3_8h.html">foundation/PxVec3.h</a>&quot;</span></div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="PxFlags_8h.html">foundation/PxFlags.h</a>&quot;</span></div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="PxCoreUtilityTypes_8h.html">common/PxCoreUtilityTypes.h</a>&quot;</span></div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="PxConvexMesh_8h.html">geometry/PxConvexMesh.h</a>&quot;</span></div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="preprocessor">#if !PX_DOXYGEN</span></div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacephysx.html">physx</a></div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;{</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;</div><div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="structPxConvexFlag.html">   50</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structPxConvexFlag.html">PxConvexFlag</a></div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;{</div><div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="structPxConvexFlag.html#a4b7bd21fa96c72b320a39e880208b4b6">   52</a></span>&#160;    <span class="keyword">enum</span> <a class="code" href="structPxConvexFlag.html#a4b7bd21fa96c72b320a39e880208b4b6">Enum</a></div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    {</div><div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="structPxConvexFlag.html#a4b7bd21fa96c72b320a39e880208b4b6a18b6c42727636f294561c735de5dc37b">   59</a></span>&#160;        e16_BIT_INDICES     =   (1&lt;&lt;0),</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;</div><div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="structPxConvexFlag.html#a4b7bd21fa96c72b320a39e880208b4b6ad3153afeb45ae6488b40fc4698919c6b">   68</a></span>&#160;        eCOMPUTE_CONVEX     =   (1&lt;&lt;1), </div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;</div><div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="structPxConvexFlag.html#a4b7bd21fa96c72b320a39e880208b4b6a12c7c442cadd1e3474fc613944981c44">   78</a></span>&#160;        eCHECK_ZERO_AREA_TRIANGLES      =   (1&lt;&lt;2),</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;</div><div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="structPxConvexFlag.html#a4b7bd21fa96c72b320a39e880208b4b6ae10437ca01f341cb3afff0bd2c40529d">   87</a></span>&#160;        eQUANTIZE_INPUT = (1 &lt;&lt; 3),</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;</div><div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="structPxConvexFlag.html#a4b7bd21fa96c72b320a39e880208b4b6a10a876ecefb45e1c7dbaec2afed5c3ad">   96</a></span>&#160;        eDISABLE_MESH_VALIDATION = (1 &lt;&lt; 4),</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;</div><div class="line"><a name="l00115"></a><span class="lineno"><a class="line" href="structPxConvexFlag.html#a4b7bd21fa96c72b320a39e880208b4b6a62cbe73f95f10cb93b5d471affef7c89">  115</a></span>&#160;        ePLANE_SHIFTING = (1 &lt;&lt; 5),</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;</div><div class="line"><a name="l00121"></a><span class="lineno"><a class="line" href="structPxConvexFlag.html#a4b7bd21fa96c72b320a39e880208b4b6ac694e25cda4aa49e1afb054b08bfc207">  121</a></span>&#160;        eFAST_INERTIA_COMPUTATION = (1 &lt;&lt; 6),</div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;</div><div class="line"><a name="l00128"></a><span class="lineno"><a class="line" href="structPxConvexFlag.html#a4b7bd21fa96c72b320a39e880208b4b6a8126f89c7d2dac99246261ca6a7ae067">  128</a></span>&#160;        eGPU_COMPATIBLE = (1 &lt;&lt; 7),</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;</div><div class="line"><a name="l00136"></a><span class="lineno"><a class="line" href="structPxConvexFlag.html#a4b7bd21fa96c72b320a39e880208b4b6a99ab52dd1e60d72bc99834e1b8093d78">  136</a></span>&#160;        eSHIFT_VERTICES = (1 &lt;&lt; 8)</div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;    };</div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;};</div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;</div><div class="line"><a name="l00145"></a><span class="lineno"><a class="line" href="group__cooking.html#ga36d3375ae49e62c3842c3fbe0c620651">  145</a></span>&#160;<span class="keyword">typedef</span> <a class="code" href="classPxFlags.html">PxFlags&lt;PxConvexFlag::Enum,PxU16&gt;</a> <a class="code" href="group__cooking.html#ga36d3375ae49e62c3842c3fbe0c620651">PxConvexFlags</a>;</div><div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;PX_FLAGS_OPERATORS(<a class="code" href="structPxConvexFlag.html#a4b7bd21fa96c72b320a39e880208b4b6">PxConvexFlag::Enum</a>,<a class="code" href="namespacephysx.html#a9caf1cbcda071b6d2a9c069faa99da23">PxU16</a>)</div><div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;</div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;</div><div class="line"><a name="l00155"></a><span class="lineno"><a class="line" href="classPxConvexMeshDesc.html">  155</a></span>&#160;class <a class="code" href="classPxConvexMeshDesc.html">PxConvexMeshDesc</a></div><div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;{</div><div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;</div><div class="line"><a name="l00164"></a><span class="lineno"><a class="line" href="classPxConvexMeshDesc.html#a939b97ee9f36cd1c1a7b7c34b0e764ef">  164</a></span>&#160;    <a class="code" href="structPxBoundedData.html">PxBoundedData</a> <a class="code" href="classPxConvexMeshDesc.html#a939b97ee9f36cd1c1a7b7c34b0e764ef">points</a>;</div><div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;</div><div class="line"><a name="l00174"></a><span class="lineno"><a class="line" href="classPxConvexMeshDesc.html#a1b710dc3c2ef759a6bef8bd888e1ecf8">  174</a></span>&#160;    <a class="code" href="structPxBoundedData.html">PxBoundedData</a> <a class="code" href="classPxConvexMeshDesc.html#a1b710dc3c2ef759a6bef8bd888e1ecf8">polygons</a>;</div><div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;</div><div class="line"><a name="l00186"></a><span class="lineno"><a class="line" href="classPxConvexMeshDesc.html#a4e760fc52d1f0f9e55c919320bed1cef">  186</a></span>&#160;    <a class="code" href="structPxBoundedData.html">PxBoundedData</a> <a class="code" href="classPxConvexMeshDesc.html#a4e760fc52d1f0f9e55c919320bed1cef">indices</a>;</div><div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;</div><div class="line"><a name="l00193"></a><span class="lineno"><a class="line" href="classPxConvexMeshDesc.html#af6d2315944dad51ba136b3563b7c00ab">  193</a></span>&#160;    <a class="code" href="classPxFlags.html">PxConvexFlags</a> <a class="code" href="classPxConvexMeshDesc.html#af6d2315944dad51ba136b3563b7c00ab">flags</a>;</div><div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;</div><div class="line"><a name="l00208"></a><span class="lineno"><a class="line" href="classPxConvexMeshDesc.html#a467c6feb39620d546a6bc9054405a728">  208</a></span>&#160;    <a class="code" href="namespacephysx.html#a9caf1cbcda071b6d2a9c069faa99da23">PxU16</a> <a class="code" href="classPxConvexMeshDesc.html#a467c6feb39620d546a6bc9054405a728">vertexLimit</a>;  </div><div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;</div><div class="line"><a name="l00219"></a><span class="lineno"><a class="line" href="classPxConvexMeshDesc.html#a8dc525326a4835f94311f4e44ca219f2">  219</a></span>&#160;    <a class="code" href="namespacephysx.html#a9caf1cbcda071b6d2a9c069faa99da23">PxU16</a> <a class="code" href="classPxConvexMeshDesc.html#a8dc525326a4835f94311f4e44ca219f2">quantizedCount</a>;</div><div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;</div><div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;    <a class="code" href="group__foundation.html#gacb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <a class="code" href="classPxConvexMeshDesc.html">PxConvexMeshDesc</a>();</div><div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;    <a class="code" href="group__foundation.html#gacb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keywordtype">void</span> setToDefault();</div><div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;    <a class="code" href="group__foundation.html#gacb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keywordtype">bool</span> isValid() <span class="keyword">const</span>;</div><div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;};</div><div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;</div><div class="line"><a name="l00237"></a><span class="lineno"><a class="line" href="group__cooking.html#ga2b98217f34d8856ebe839821740ac438">  237</a></span>&#160;<a class="code" href="group__foundation.html#gacb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <a class="code" href="group__cooking.html#ga2b98217f34d8856ebe839821740ac438">PxConvexMeshDesc::PxConvexMeshDesc</a>()  <span class="comment">//constructor sets to default</span></div><div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;: vertexLimit(255), quantizedCount(255)</div><div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;{</div><div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;}</div><div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;</div><div class="line"><a name="l00242"></a><span class="lineno"><a class="line" href="group__cooking.html#ga6e86954b2426aae207489af9928d45e3">  242</a></span>&#160;<a class="code" href="group__foundation.html#gacb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keywordtype">void</span> <a class="code" href="group__cooking.html#ga6e86954b2426aae207489af9928d45e3">PxConvexMeshDesc::setToDefault</a>()</div><div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;{</div><div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;    *<span class="keyword">this</span> = <a class="code" href="group__cooking.html#ga2b98217f34d8856ebe839821740ac438">PxConvexMeshDesc</a>();</div><div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;}</div><div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;</div><div class="line"><a name="l00247"></a><span class="lineno"><a class="line" href="group__cooking.html#ga6155ac1dfe72113670b79dbf363b21d2">  247</a></span>&#160;<a class="code" href="group__foundation.html#gacb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keywordtype">bool</span> <a class="code" href="group__cooking.html#ga6155ac1dfe72113670b79dbf363b21d2">PxConvexMeshDesc::isValid</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;<span class="keyword"></span>{</div><div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;    <span class="comment">// Check geometry</span></div><div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;    <span class="keywordflow">if</span>(<a class="code" href="classPxConvexMeshDesc.html#a939b97ee9f36cd1c1a7b7c34b0e764ef">points</a>.<a class="code" href="structPxBoundedData.html#a99f022ab9aad0f98028254c1f433165f">count</a> &lt; 3 ||  <span class="comment">//at least 1 trig&#39;s worth of points</span></div><div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;        (<a class="code" href="classPxConvexMeshDesc.html#a939b97ee9f36cd1c1a7b7c34b0e764ef">points</a>.<a class="code" href="structPxBoundedData.html#a99f022ab9aad0f98028254c1f433165f">count</a> &gt; 0xffff &amp;&amp; <a class="code" href="classPxConvexMeshDesc.html#af6d2315944dad51ba136b3563b7c00ab">flags</a> &amp; <a class="code" href="structPxConvexFlag.html#a4b7bd21fa96c72b320a39e880208b4b6a18b6c42727636f294561c735de5dc37b">PxConvexFlag::e16_BIT_INDICES</a>))</div><div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;    <span class="keywordflow">if</span>(!<a class="code" href="classPxConvexMeshDesc.html#a939b97ee9f36cd1c1a7b7c34b0e764ef">points</a>.<a class="code" href="structPxStridedData.html#ad98a9e00d44b1c2c48c6dec114693f18">data</a>)</div><div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;    <span class="keywordflow">if</span>(<a class="code" href="classPxConvexMeshDesc.html#a939b97ee9f36cd1c1a7b7c34b0e764ef">points</a>.<a class="code" href="structPxStridedData.html#aabf495b4b5caec8f5350645a49e68fb3">stride</a> &lt; <span class="keyword">sizeof</span>(<a class="code" href="classPxVec3.html">PxVec3</a>))  <span class="comment">//should be at least one point&#39;s worth of data</span></div><div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="classPxConvexMeshDesc.html#a8dc525326a4835f94311f4e44ca219f2">quantizedCount</a> &lt; 4)</div><div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;</div><div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;    <span class="comment">// Check topology</span></div><div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;    <span class="keywordflow">if</span>(<a class="code" href="classPxConvexMeshDesc.html#a1b710dc3c2ef759a6bef8bd888e1ecf8">polygons</a>.<a class="code" href="structPxStridedData.html#ad98a9e00d44b1c2c48c6dec114693f18">data</a>)</div><div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;    {</div><div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;        <span class="keywordflow">if</span>(<a class="code" href="classPxConvexMeshDesc.html#a1b710dc3c2ef759a6bef8bd888e1ecf8">polygons</a>.<a class="code" href="structPxBoundedData.html#a99f022ab9aad0f98028254c1f433165f">count</a> &lt; 4) <span class="comment">// we require 2 neighbors for each vertex - 4 polygons at least</span></div><div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;            <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;</div><div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;        <span class="keywordflow">if</span>(!<a class="code" href="classPxConvexMeshDesc.html#a4e760fc52d1f0f9e55c919320bed1cef">indices</a>.<a class="code" href="structPxStridedData.html#ad98a9e00d44b1c2c48c6dec114693f18">data</a>) <span class="comment">// indices must be provided together with polygons</span></div><div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;            <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;</div><div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;        <a class="code" href="group__foundation.html#gacce5749db3dcfb916e98c253374264ed">PxU32</a> limit = (<a class="code" href="classPxConvexMeshDesc.html#af6d2315944dad51ba136b3563b7c00ab">flags</a> &amp; <a class="code" href="structPxConvexFlag.html#a4b7bd21fa96c72b320a39e880208b4b6a18b6c42727636f294561c735de5dc37b">PxConvexFlag::e16_BIT_INDICES</a>) ? <span class="keyword">sizeof</span>(<a class="code" href="namespacephysx.html#a9caf1cbcda071b6d2a9c069faa99da23">PxU16</a>) : <span class="keyword">sizeof</span>(<a class="code" href="group__foundation.html#gacce5749db3dcfb916e98c253374264ed">PxU32</a>);</div><div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;        <span class="keywordflow">if</span>(<a class="code" href="classPxConvexMeshDesc.html#a4e760fc52d1f0f9e55c919320bed1cef">indices</a>.<a class="code" href="structPxStridedData.html#aabf495b4b5caec8f5350645a49e68fb3">stride</a> &lt; limit) </div><div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;            <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;</div><div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;        limit = <span class="keyword">sizeof</span>(<a class="code" href="structPxHullPolygon.html">PxHullPolygon</a>);</div><div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;        <span class="keywordflow">if</span>(<a class="code" href="classPxConvexMeshDesc.html#a1b710dc3c2ef759a6bef8bd888e1ecf8">polygons</a>.<a class="code" href="structPxStridedData.html#aabf495b4b5caec8f5350645a49e68fb3">stride</a> &lt; limit) </div><div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;            <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;    }</div><div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;    <span class="keywordflow">else</span></div><div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;    {</div><div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;        <span class="comment">// We can compute the hull from the vertices</span></div><div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;        <span class="keywordflow">if</span>(!(<a class="code" href="classPxConvexMeshDesc.html#af6d2315944dad51ba136b3563b7c00ab">flags</a> &amp; <a class="code" href="structPxConvexFlag.html#a4b7bd21fa96c72b320a39e880208b4b6ad3153afeb45ae6488b40fc4698919c6b">PxConvexFlag::eCOMPUTE_CONVEX</a>))</div><div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;            <span class="keywordflow">return</span> <span class="keyword">false</span>;   <span class="comment">// If the mesh is convex and we&#39;re not allowed to compute the hull,</span></div><div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;                            <span class="comment">// you have to provide it completely (geometry &amp; topology).</span></div><div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;    }</div><div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;</div><div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;    <span class="keywordflow">if</span>((<a class="code" href="classPxConvexMeshDesc.html#af6d2315944dad51ba136b3563b7c00ab">flags</a> &amp; <a class="code" href="structPxConvexFlag.html#a4b7bd21fa96c72b320a39e880208b4b6a62cbe73f95f10cb93b5d471affef7c89">PxConvexFlag::ePLANE_SHIFTING</a>) &amp;&amp;  <a class="code" href="classPxConvexMeshDesc.html#a467c6feb39620d546a6bc9054405a728">vertexLimit</a> &lt; 4)</div><div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;    {</div><div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;    }</div><div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;</div><div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;    <span class="keywordflow">if</span> (!(<a class="code" href="classPxConvexMeshDesc.html#af6d2315944dad51ba136b3563b7c00ab">flags</a> &amp; <a class="code" href="structPxConvexFlag.html#a4b7bd21fa96c72b320a39e880208b4b6a62cbe73f95f10cb93b5d471affef7c89">PxConvexFlag::ePLANE_SHIFTING</a>) &amp;&amp; <a class="code" href="classPxConvexMeshDesc.html#a467c6feb39620d546a6bc9054405a728">vertexLimit</a> &lt; 8)</div><div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;    {</div><div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;    }</div><div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;</div><div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160;    <span class="keywordflow">if</span>(<a class="code" href="classPxConvexMeshDesc.html#a467c6feb39620d546a6bc9054405a728">vertexLimit</a> &gt; 256)</div><div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160;    {</div><div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;    }</div><div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;    <span class="keywordflow">return</span> <span class="keyword">true</span>;</div><div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;}</div><div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160;</div><div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160;<span class="preprocessor">#if !PX_DOXYGEN</span></div><div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;} <span class="comment">// namespace physx</span></div><div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;</div><div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="namespacephysx_html"><div class="ttname"><a href="namespacephysx.html">physx</a></div><div class="ttdef"><b>Definition:</b> GuContactBuffer.h:37</div></div>
<div class="ttc" id="PxConvexMesh_8h_html"><div class="ttname"><a href="PxConvexMesh_8h.html">PxConvexMesh.h</a></div></div>
<div class="ttc" id="structPxConvexFlag_html_a4b7bd21fa96c72b320a39e880208b4b6a62cbe73f95f10cb93b5d471affef7c89"><div class="ttname"><a href="structPxConvexFlag.html#a4b7bd21fa96c72b320a39e880208b4b6a62cbe73f95f10cb93b5d471affef7c89">PxConvexFlag::ePLANE_SHIFTING</a></div><div class="ttdoc">Enables plane shifting vertex limit algorithm. </div><div class="ttdef"><b>Definition:</b> PxConvexMeshDesc.h:115</div></div>
<div class="ttc" id="structPxHullPolygon_html"><div class="ttname"><a href="structPxHullPolygon.html">PxHullPolygon</a></div><div class="ttdoc">Polygon data. </div><div class="ttdef"><b>Definition:</b> PxConvexMesh.h:51</div></div>
<div class="ttc" id="structPxConvexFlag_html"><div class="ttname"><a href="structPxConvexFlag.html">PxConvexFlag</a></div><div class="ttdoc">Flags which describe the format and behavior of a convex mesh. </div><div class="ttdef"><b>Definition:</b> PxConvexMeshDesc.h:50</div></div>
<div class="ttc" id="classPxConvexMeshDesc_html_a467c6feb39620d546a6bc9054405a728"><div class="ttname"><a href="classPxConvexMeshDesc.html#a467c6feb39620d546a6bc9054405a728">PxConvexMeshDesc::vertexLimit</a></div><div class="ttdeci">PxU16 vertexLimit</div><div class="ttdoc">Limits the number of vertices of the result convex mesh. Hard maximum limit is 256 and minimum limit ...</div><div class="ttdef"><b>Definition:</b> PxConvexMeshDesc.h:208</div></div>
<div class="ttc" id="group__cooking_html_ga2b98217f34d8856ebe839821740ac438"><div class="ttname"><a href="group__cooking.html#ga2b98217f34d8856ebe839821740ac438">PxConvexMeshDesc::PxConvexMeshDesc</a></div><div class="ttdeci">PX_INLINE PxConvexMeshDesc()</div><div class="ttdoc">constructor sets to default. </div><div class="ttdef"><b>Definition:</b> PxConvexMeshDesc.h:237</div></div>
<div class="ttc" id="group__cooking_html_ga36d3375ae49e62c3842c3fbe0c620651"><div class="ttname"><a href="group__cooking.html#ga36d3375ae49e62c3842c3fbe0c620651">PxConvexFlags</a></div><div class="ttdeci">PxFlags&lt; PxConvexFlag::Enum, PxU16 &gt; PxConvexFlags</div><div class="ttdoc">collection of set bits defined in PxConvexFlag. </div><div class="ttdef"><b>Definition:</b> PxConvexMeshDesc.h:145</div></div>
<div class="ttc" id="structPxConvexFlag_html_a4b7bd21fa96c72b320a39e880208b4b6ad3153afeb45ae6488b40fc4698919c6b"><div class="ttname"><a href="structPxConvexFlag.html#a4b7bd21fa96c72b320a39e880208b4b6ad3153afeb45ae6488b40fc4698919c6b">PxConvexFlag::eCOMPUTE_CONVEX</a></div><div class="ttdef"><b>Definition:</b> PxConvexMeshDesc.h:68</div></div>
<div class="ttc" id="group__cooking_html_ga6155ac1dfe72113670b79dbf363b21d2"><div class="ttname"><a href="group__cooking.html#ga6155ac1dfe72113670b79dbf363b21d2">PxConvexMeshDesc::isValid</a></div><div class="ttdeci">PX_INLINE bool isValid() const</div><div class="ttdoc">Returns true if the descriptor is valid. </div><div class="ttdef"><b>Definition:</b> PxConvexMeshDesc.h:247</div></div>
<div class="ttc" id="classPxConvexMeshDesc_html_a939b97ee9f36cd1c1a7b7c34b0e764ef"><div class="ttname"><a href="classPxConvexMeshDesc.html#a939b97ee9f36cd1c1a7b7c34b0e764ef">PxConvexMeshDesc::points</a></div><div class="ttdeci">PxBoundedData points</div><div class="ttdoc">Vertex positions data in PxBoundedData format. </div><div class="ttdef"><b>Definition:</b> PxConvexMeshDesc.h:164</div></div>
<div class="ttc" id="PxCoreUtilityTypes_8h_html"><div class="ttname"><a href="PxCoreUtilityTypes_8h.html">PxCoreUtilityTypes.h</a></div></div>
<div class="ttc" id="structPxConvexFlag_html_a4b7bd21fa96c72b320a39e880208b4b6a18b6c42727636f294561c735de5dc37b"><div class="ttname"><a href="structPxConvexFlag.html#a4b7bd21fa96c72b320a39e880208b4b6a18b6c42727636f294561c735de5dc37b">PxConvexFlag::e16_BIT_INDICES</a></div><div class="ttdef"><b>Definition:</b> PxConvexMeshDesc.h:59</div></div>
<div class="ttc" id="classPxConvexMeshDesc_html_a4e760fc52d1f0f9e55c919320bed1cef"><div class="ttname"><a href="classPxConvexMeshDesc.html#a4e760fc52d1f0f9e55c919320bed1cef">PxConvexMeshDesc::indices</a></div><div class="ttdeci">PxBoundedData indices</div><div class="ttdoc">Polygon indices data in PxBoundedData format. </div><div class="ttdef"><b>Definition:</b> PxConvexMeshDesc.h:186</div></div>
<div class="ttc" id="structPxStridedData_html_aabf495b4b5caec8f5350645a49e68fb3"><div class="ttname"><a href="structPxStridedData.html#aabf495b4b5caec8f5350645a49e68fb3">PxStridedData::stride</a></div><div class="ttdeci">PxU32 stride</div><div class="ttdoc">The offset in bytes between consecutive samples in the data. </div><div class="ttdef"><b>Definition:</b> PxCoreUtilityTypes.h:53</div></div>
<div class="ttc" id="structPxConvexFlag_html_a4b7bd21fa96c72b320a39e880208b4b6"><div class="ttname"><a href="structPxConvexFlag.html#a4b7bd21fa96c72b320a39e880208b4b6">PxConvexFlag::Enum</a></div><div class="ttdeci">Enum</div><div class="ttdef"><b>Definition:</b> PxConvexMeshDesc.h:52</div></div>
<div class="ttc" id="structPxBoundedData_html_a99f022ab9aad0f98028254c1f433165f"><div class="ttname"><a href="structPxBoundedData.html#a99f022ab9aad0f98028254c1f433165f">PxBoundedData::count</a></div><div class="ttdeci">PxU32 count</div><div class="ttdef"><b>Definition:</b> PxCoreUtilityTypes.h:85</div></div>
<div class="ttc" id="structPxStridedData_html_ad98a9e00d44b1c2c48c6dec114693f18"><div class="ttname"><a href="structPxStridedData.html#ad98a9e00d44b1c2c48c6dec114693f18">PxStridedData::data</a></div><div class="ttdeci">const void * data</div><div class="ttdef"><b>Definition:</b> PxCoreUtilityTypes.h:54</div></div>
<div class="ttc" id="PxVec3_8h_html"><div class="ttname"><a href="PxVec3_8h.html">PxVec3.h</a></div></div>
<div class="ttc" id="classPxConvexMeshDesc_html"><div class="ttname"><a href="classPxConvexMeshDesc.html">PxConvexMeshDesc</a></div><div class="ttdoc">Descriptor class for PxConvexMesh. </div><div class="ttdef"><b>Definition:</b> PxConvexMeshDesc.h:155</div></div>
<div class="ttc" id="group__cooking_html_ga6e86954b2426aae207489af9928d45e3"><div class="ttname"><a href="group__cooking.html#ga6e86954b2426aae207489af9928d45e3">PxConvexMeshDesc::setToDefault</a></div><div class="ttdeci">PX_INLINE void setToDefault()</div><div class="ttdoc">(re)sets the structure to the default. </div><div class="ttdef"><b>Definition:</b> PxConvexMeshDesc.h:242</div></div>
<div class="ttc" id="classPxConvexMeshDesc_html_a8dc525326a4835f94311f4e44ca219f2"><div class="ttname"><a href="classPxConvexMeshDesc.html#a8dc525326a4835f94311f4e44ca219f2">PxConvexMeshDesc::quantizedCount</a></div><div class="ttdeci">PxU16 quantizedCount</div><div class="ttdoc">Maximum number of vertices after quantization. The quantization is done during the vertex cleaning ph...</div><div class="ttdef"><b>Definition:</b> PxConvexMeshDesc.h:219</div></div>
<div class="ttc" id="PxFlags_8h_html"><div class="ttname"><a href="PxFlags_8h.html">PxFlags.h</a></div></div>
<div class="ttc" id="classPxFlags_html"><div class="ttname"><a href="classPxFlags.html">PxFlags&lt; PxConvexFlag::Enum, PxU16 &gt;</a></div></div>
<div class="ttc" id="namespacephysx_html_a9caf1cbcda071b6d2a9c069faa99da23"><div class="ttname"><a href="namespacephysx.html#a9caf1cbcda071b6d2a9c069faa99da23">physx::PxU16</a></div><div class="ttdeci">uint16_t PxU16</div><div class="ttdef"><b>Definition:</b> PxSimpleTypes.h:73</div></div>
<div class="ttc" id="group__foundation_html_gacce5749db3dcfb916e98c253374264ed"><div class="ttname"><a href="group__foundation.html#gacce5749db3dcfb916e98c253374264ed">PxU32</a></div><div class="ttdeci">uint32_t PxU32</div><div class="ttdef"><b>Definition:</b> Px.h:48</div></div>
<div class="ttc" id="group__foundation_html_gacb03347b642a2a5bdea1f9b305a6fbec"><div class="ttname"><a href="group__foundation.html#gacb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a></div><div class="ttdeci">#define PX_INLINE</div><div class="ttdef"><b>Definition:</b> PxPreprocessor.h:336</div></div>
<div class="ttc" id="structPxBoundedData_html"><div class="ttname"><a href="structPxBoundedData.html">PxBoundedData</a></div><div class="ttdef"><b>Definition:</b> PxCoreUtilityTypes.h:83</div></div>
<div class="ttc" id="classPxConvexMeshDesc_html_af6d2315944dad51ba136b3563b7c00ab"><div class="ttname"><a href="classPxConvexMeshDesc.html#af6d2315944dad51ba136b3563b7c00ab">PxConvexMeshDesc::flags</a></div><div class="ttdeci">PxConvexFlags flags</div><div class="ttdoc">Flags bits, combined from values of the enum PxConvexFlag. </div><div class="ttdef"><b>Definition:</b> PxConvexMeshDesc.h:193</div></div>
<div class="ttc" id="classPxConvexMeshDesc_html_a1b710dc3c2ef759a6bef8bd888e1ecf8"><div class="ttname"><a href="classPxConvexMeshDesc.html#a1b710dc3c2ef759a6bef8bd888e1ecf8">PxConvexMeshDesc::polygons</a></div><div class="ttdeci">PxBoundedData polygons</div><div class="ttdoc">Polygons data in PxBoundedData format. </div><div class="ttdef"><b>Definition:</b> PxConvexMeshDesc.h:174</div></div>
<div class="ttc" id="classPxVec3_html"><div class="ttname"><a href="classPxVec3.html">PxVec3</a></div><div class="ttdoc">3 Element vector class. </div><div class="ttdef"><b>Definition:</b> PxVec3.h:49</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.14-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_713b4d6d20ce249967929ad234a3da6e.html">include</a></li><li class="navelem"><a class="el" href="dir_33d696d73418a0d31fda51c1de82df09.html">cooking</a></li><li class="navelem"><a class="el" href="PxConvexMeshDesc_8h.html">PxConvexMeshDesc.h</a></li>
    <li class="footer">Copyright &copy; 2008-2021 NVIDIA Corporation, 2788 San Tomas Expressway, Santa Clara, CA 95051 U.S.A. All rights reserved. <a href="http://www.nvidia.com ">www.nvidia.com</a></li>
  </ul>
</div>
</body>
</html>
